<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

	<head>
	 	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>资讯信息列表</title>
		<style type="text/css">
			.form-multi-col-panel {
				background: inherit;
			}
			.delete-icon {
				position: absolute;
			    left: 30px;
			    top: 29px;
			    color: #bbb9b9;
			}
			.delete-icon:hover {
				color: #ff9600;
			}
		</style>
		<script type="text/javascript">
			var bondPath = '<%=context%>' + 'business/prdSetup/news/';
			//默认加载
			$(function(){
				//把访问路径传到js
				setPathPrefix(bondPath);
			});
		</script>
	</head>
	
	<body class="fixed-nav" style="height: 90%;">

	<div class="tabs">
	    <ul id="myTabs" class="nav clear" role="tablist">
	        <li role="presentation" class="active tab"><a href="#market_opinion" role="tab" onclick="NEWS_INFO.showMarketOpinion()" id="market_opinion-tab" data-toggle="tab">市场观点</a></li>
	        <li role="presentation" class="tab"><span class="gap"></span><a href="#supervise_dynamic_analyse" role="tab" onclick="NEWS_INFO.showSuperviseDynamicAnalyse()" id="supervise_dynamic_analyse-tab" data-toggle="tab">监管动态解读</a></li>
	        <li role="presentation" class="tab"><span class="gap"></span><a href="#asset_config_advice" role="tab" onclick="NEWS_INFO.showAssetConfigAdvice()" id="asset_config_advice-tab" data-toggle="tab">资产配置建议</a></li>
<!-- 	        <li role="presentation" class="tab"><span class="gap"></span><a href="#market_hot_prj" role="tab" onclick="NEWS_INFO.showMarketHotPrj()" id="market_hot_prj-tab" data-toggle="tab">市场热点产品</a></li> -->
        </ul>
    </div>
	
	<div class="result-box">
		<!-- 详情（市场观点） -->
		<div style="display: none;" id="detailMarketOpinionTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='detailMarketOpinion' param=''></wasp:opera></div>
		<!-- 下载（市场观点） -->
		<div style="display: none;" id="downloadMarketOpinionTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='downloadMarketOpinion' param=''></wasp:opera></div>
		
		<!-- 详情（市场热点产品） -->
		<div style="display: none;" id="detailMarketHotPrjTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='detailMarketHotPrj' param=''></wasp:opera></div>
		<!-- 下载（市场热点产品） -->
		<div style="display: none;" id="downloadMarketHotPrjTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='downloadMarketHotPrj' param=''></wasp:opera></div>
		
		<!-- 详情（资产配置建议） -->
		<div style="display: none;" id="detailAssetConfigAdviceTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='detailAssetConfigAdvice' param=''></wasp:opera></div>
		<!-- 下载（资产配置建议） -->
		<div style="display: none;" id="downloadAssetConfigAdviceTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='downloadAssetConfigAdvice' param=''></wasp:opera></div>
		
		<!-- 详情（监管动态解读） -->
		<div style="display: none;" id="detailSuperviseDynamicAnalyseTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='detailSuperviseDynamicAnalyse' param=''></wasp:opera></div>
		<!-- 下载（监管动态解读） -->
		<div style="display: none;" id="downloadSuperviseDynamicAnalyseTemp"><wasp:opera fun='javascirpt:void(0);' type='2' id='downloadSuperviseDynamicAnalyse' param=''></wasp:opera></div>

		<div class="clearfix form-multi-col-panel mo-search aca-search sda-search">
			<div class="form-item-group form-horizontal">
				<div>
					<div class="form-item">
						<span class="form-field">标题</span>
						<span class="form-input">
							<input type="text" class="form-control" id="newsTitle"/>
						</span>
			        </div>
					<div class="form-item">
						<span class="form-field">发布时间</span>
						<span class="form-input">
							<input type="text" class="form-control" id="createTime"/>
						</span>
			        </div>
			        <!-- 
					<div class="form-item">
						<span class="form-field">作者</span>
						<span class="form-input">
							<select class="form-control use-select2" id="createId" placeholder="作者"></select>
						</span>
			        </div>
			         -->
					<div class="form-item">
						<span class="form-field"></span>
						<span class="form-input">
							<button class="btn btn-primary" type="submit" id="market_opinion-search" onclick="queryByCondtion(true, 'market_opinion')"><i class="fa fa-search"></i>&nbsp;查询</button>
							<button class="btn btn-primary" style="display: none" type="submit" id="asset_config_advice-search" onclick="queryByCondtion(true, 'asset_config_advice')"><i class="fa fa-search"></i>&nbsp;查询</button>
							<button class="btn btn-primary" style="display: none" type="submit" id="supervise_dynamic_analyse-search" onclick="queryByCondtion(true, 'supervise_dynamic_analyse')"><i class="fa fa-search"></i>&nbsp;查询</button>
							<button class="btn btn-default" name="resetBtn" type="reset">清空</button>
						</span>
					</div>
			        <div class="form-item"></div>
			        <div class="form-item"></div>
			    </div>
			</div>
		
		</div>
		
		<div class="form-search-group mo-search aca-search sda-search">
			<wasp:opera fun="NEWS_INFO.showInsertMarketOpinion();" id="insertMarketOpinion"></wasp:opera>
			<wasp:opera fun="NEWS_INFO.showInsertAssetConfigAdvice();" id="insertAssetConfigAdvice"></wasp:opera>
			<wasp:opera fun="NEWS_INFO.showInsertSuperviseDynamicAnalyse();" id="insertSuperviseDynamicAnalyse"></wasp:opera>
		</div>
		
		<div class="clearfix form-multi-col-panel hot-search" style="display: none;">
			<div class="form-item-group form-horizontal">
				<div>
					<div class="form-item">
						<span class="form-field">管理人</span>
						<span class="form-input">
							<select class="form-control use-select2" id="managerId" placeholder="管理人"></select>
						</span>
			        </div>
					<div class="form-item">
						<span class="form-field">产品名称</span>
						<span class="form-input">
							<input type="text" class="form-control" id="prjName"/>
						</span>
			        </div>
			        <div class="form-item">
			            <span class="form-field">风险等级</span>   
			            <span class="form-input">   
			                <select class="form-control use-select2" id="riskLevel">          
			                     <option value="">全部</option>
			                     <wasp:dictOptions dctRootType="RISK_LEVEL"></wasp:dictOptions>
			                </select>
			             </span>
			        </div>
			        <div class="form-item">
			            <span class="form-field">产品状态</span>   
			            <span class="form-input">   
			                <select class="form-control use-select2" id="prjStatus">          
			                     <option value="">全部</option>
			                     <wasp:dictOptions dctRootType="PRJ_STATUS"></wasp:dictOptions>
			                </select>
			             </span>
			        </div>
				</div>
				
			</div>
			
			<div class="form-action">
				<button class="btn btn-primary" type="submit" id="market_hot_prj-search" onclick="queryByCondtion(true, 'market_hot_prj')"><i class="fa fa-search"></i>&nbsp;查询</button>
				<button class="btn btn-default" name="resetBtn" type="reset">清空</button>
			</div>
		</div>
		
		<div class="form-search-group hot-search" style="display: none;">
			<wasp:opera fun="NEWS_INFO.showInsertMarketHotPrj();" id="insertMarketHotPrj"></wasp:opera>
		</div>
		
		<div class="clearfix">
			<div id="MarketOpinionGrid" class="news-list-container" style="display: none; margin-top:11px;">
				<ul class="list-group news-list">
					<!-- <li class="list-group-item col-sm-12">
						<div class="col-sm-2 text-center news-date">
							<h2>24</h2>
							2019-01
						</div>
						<div class="col-sm-10 text-left">
							<h3 class="news-title">
								<a href="/solution/business/prdSetup/news/commonNewsInfoDetailView.do?id=20190128000022" target="_blank">市场观点：社科院：房价下跌速度趋缓 一二线下跌速度显著减缓</a>
							</h3>
							<h6 class="news-abstract">摘要：报告认为，房价下跌速度趋缓，重点城市成交继续回升，同时，报告建议，“房住不炒”仍是新形势下住房政策的前提，可以根据市场形势变化，对政策进行微调。</h6>
							<span class="news-down"><a href="/solution/business/prdSetup/news/downloadNewsAttach.do?id=20190128000022"><i class="fa fa-paperclip"></i> 点此下载资讯相关附件</a></span>
						</div>
					</li> -->
				</ul>
				<div class="text-center">
				  <ul id="MarketOpinionPaginator"></ul>
				</div>
			</div>
			<div id="myTabContent" class="tab-content">
				<div class="jqGrid_wrapper fullscreen-wrapper" id="MarketHotPrjGrid" style="display: none">
					<table id="newsInfoList_MarketHotPrj"></table>
					<div id="newsInfoListPage_MarketHotPrj"></div>
				</div>
			</div>
			
			<div id="AssetConfigAdviceGrid" class="news-list-container" style="display: none; margin-top:11px;">
				<ul class="list-group news-list">
				</ul>
				
				<div class="text-center">
				  <ul id="AssetConfigAdvicePaginator"></ul>
				</div>
			</div>
			
			<div id="SuperviseDynamicAnalyseGrid" class="news-list-container" style="display: none; margin-top:11px;">
				<ul class="list-group news-list">
					<li class="list-group-item col-sm-12">
					</li>
				</ul>
				
				<div class="text-center">
				  <ul id="SuperviseDynamicAnalysePaginator"></ul>
				</div>
			</div>
		</div>
		
		<!-- <div class="clearfix">
			<div id="myTabContent" class="tab-content">
				<div class="jqGrid_wrapper fullscreen-wrapper" id="MarketOpinionGrid">
					<table id="newsInfoList_MarketOpinion"></table>
					<div id="newsInfoListPage_MarketOpinion"></div>
				</div>
				
				<div class="jqGrid_wrapper fullscreen-wrapper" id="AssetConfigAdviceGrid" style="display: none">
					<table id="newsInfoList_AssetConfigAdvice"></table>
					<div id="newsInfoListPage_AssetConfigAdvice"></div>
				</div>
				<div class="jqGrid_wrapper fullscreen-wrapper" id="SuperviseDynamicAnalyseGrid" style="display: none">
					<table id="newsInfoList_SuperviseDynamicAnalyse"></table>
					<div id="newsInfoListPage_SuperviseDynamicAnalyse"></div>
				</div>
			</div>
		</div> -->
	</div>
<script type="text/javascript" src="<%=context%>resources/modules/business/prdSetup/news/newsInfo.list.js?r=<%=Math.random()%>"></script>
<script type="text/javascript" src="<%=context%>resources/modules/bootstrap/js/plugins/paginator/bootstrap-paginator.js"></script>
<script type="x-tmpl-mustache" id="newsTemplate">
{{#result}}
<li class="list-group-item col-sm-12">
<div class="col-sm-2 text-center news-date">
	<wasp:hasPermission id="deleteMarketOpinion"><a class="delete-icon dmo" onclick="NEWS_INFO.deleteCommonNews('{{id}}')"><i class="far fa-trash-alt"></i></a></wasp:hasPermission>
	<wasp:hasPermission id="deleteAssetConfigAdvice"><a class="delete-icon daca" onclick="NEWS_INFO.deleteCommonNews('{{id}}')"><i class="far fa-trash-alt"></i></a></wasp:hasPermission>
	<wasp:hasPermission id="deleteSuperviseDynamicAnalyse"><a class="delete-icon dsda" onclick="NEWS_INFO.deleteCommonNews('{{id}}')"><i class="far fa-trash-alt"></i></a></wasp:hasPermission>
	<h2>{{DD}}</h2>
	{{YYYYMM}}
</div>
<div class="col-sm-10 text-left">
	<h3 class="news-title">
		<a href="/solution/business/prdSetup/news/commonNewsInfoDetailView.do?id={{id}}" target="_blank">{{newsTitle}}</a>
	</h3>
	{{#newsAbstract}}
		<h6 class="news-abstract">摘要：{{newsAbstract}}</h6>
	{{/newsAbstract}}
	{{#attCount}}
		<span class="news-down"><a href="/solution/business/prdSetup/news/downloadCommonNews.do?id={{id}}"><i class="fa fa-paperclip"></i> 点此下载资讯相关附件</a></span>
	{{/attCount}}
</div>
</li>
{{/result}}
</script>
</body>
</html>